<?php


namespace app\seller\controller;

use think\Db;


class Shop extends Base
{
    public function index()
    {
        $list = Db::name('category')->field('id,dizhi,name,image')->where('seller_id', $this->seller_id)->select();
        foreach ($list as &$item) {
            $item['image'] = request()->domain() . $item['image'];
        }
        return $this->success('获取成功', $list);
    }
}
